const defaultRoutes = [
  {
    path: "/",
    name: "Layout",
    redirect: "Home",
    component: () => import("../layout/index.vue"),
    meta: {
      isMenu: false,
      isStatic: true,
    },
    children: [
      {
        path: "/home",
        name: "Home",
        component: () => import("../views/Home/index.vue"),
        meta: {
          isMenu: true,
          isStatic: true,
          name: "首页",
          icon: "el-icon-s-home",
        },
      },
      {
        path: "/about",
        name: "About",
        component: () => import("../views/About/index.vue"),
        meta: {
          isMenu: true,
          isStatic: true,
          name: "关于",
          icon: "el-icon-user",
        },
      },
      {
        path: "/ask",
        name: "Ask",
        redirect: "Ask1",
        component: () => import("../views/ParentLayout/index.vue"),
        meta: {
          isMenu: true,
          isStatic: true,
          name: "询问",
          icon: "el-icon-setting",
        },
        children: [
          {
            path: "/ask/ask1",
            name: "Ask1",
            component: () => import("../views/Ask/Ask1/index.vue"),
            meta: {
              isMenu: true,
              isStatic: true,
              name: "询问1",
              icon: "el-icon-setting",
            },
          },
          {
            path: "/ask/ask2",
            name: "Ask2",
            component: () => import("../views/Ask/Ask2/index.vue"),
            meta: {
              isMenu: true,
              isStatic: true,
              name: "询问2",
              icon: "el-icon-setting",
            },
          },
        ],
      },
      {
        path: "/hasaki",
        name: "Hasaki",
        component: () => import("../views/Hasaki/index.vue"),
        meta: {
          isMenu: true,
          isStatic: true,
          name: "还看",
          icon: "el-icon-picture-outline-round",
        },
      },
    ],
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("../views/Login/index.vue"),
    meta: {
      isMenu: false,
      isStatic: true,
      name: "登录",
    },
  },
  {
    path: "/404",
    component: () => import("@/views/Error/index.vue"),
    meta: {
      isMenu: false,
      isStatic: true,
    },
  },
];

export default defaultRoutes;
